// import './App.css';
// import router from './router/index'
import { Switch, Route } from 'react-router-dom'
import { ConfigProvider } from 'zarm'
import routes from './router';
console.log(ConfigProvider)
function App () {
  return (
    <ConfigProvider>
      <>
        <Switch>
          {
            routes.map(route => <Route exact key={route.path} path={route.path}>
              <route.component></route.component>
            </Route>)
          }
        </Switch>
      </>
    </ConfigProvider>
  );
}

export default App;
